package com.lewis.anf.servlet;

import java.util.ArrayList;
import java.util.List;

import javax.servlet.ServletConfig;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;

import com.lewis.anf.websocket.AnfWebSocket;

public class InitWebSocketServlet extends HttpServlet {

	private static List<AnfWebSocket> socketList;
	
	public void init(ServletConfig config) throws ServletException {  
		InitWebSocketServlet.socketList = new ArrayList<AnfWebSocket>();  
        super.init(config);  
        System.out.println("Server start============");  
    }  
	
	public static synchronized List<AnfWebSocket> getSocketList() {  
	        return InitWebSocketServlet.socketList;  
	}  
	
}
